package org.jeecg.modules.pur.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.pur.entity.PurSupplierPool;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 外围采购供应商库
 * @Author: jeecg-boot
 * @Date:   2022-11-14
 * @Version: V1.0
 */
public interface PurSupplierPoolMapper extends BaseMapper<PurSupplierPool> {

    @Select("SELECT * FROM pur_supplier_pool WHERE in_blacklist = '是'")
    public List<PurSupplierPool> selectAllBlacklist();

    @Select("SELECT * FROM pur_supplier_pool WHERE supplier_type = '外委'")
    public List<PurSupplierPool> selectAllSubContractor();

    @Select("SELECT * FROM pur_supplier_pool WHERE supplier_type = '采购'")
    public List<PurSupplierPool> selectAllProcurement();
}
